package com.weblog.weblog.common.domain.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author gc
 * @date 2024年01月24日 19:19
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("t_wiki")
public class WikiDO {

    //知识库 ID
    @TableId(type = IdType.AUTO)
    private Long id;

    //标题
    private String title;

    //知识库封面
    private String cover;

    //摘要
    private String summary;

    //发布时间
    private LocalDateTime createTime;

    //更新时间
    private LocalDateTime updateTime;

    //是否删除
    private Boolean isDeleted;

    //权重
    private Integer weight;

    //是否发布
    private Boolean isPublish;
}
